package com.ushine.design.design.c_behavioral_pattern.h_state.c_switch;

public class OffState extends SwitchState {

    @Override
    public void on(Switch on) {
        System.out.println("打开！");
        on.setState(Switch.getState("on"));
    }

    @Override
    public void off(Switch off) {
        System.out.println("已经关闭！");
    }

}
